import fetch from 'utils/fetch';
export function page(query) {
  return fetch({
    url: '/api/shop/viewGoods/page',
    method: 'get',
    params: query
  });
}

export function save(data) {
  return fetch({
    url: '/api/shop/shopGoods/save',
    method: 'post',
    data
  });
}

export function del(id) {
  return fetch({
    url: '/api/shop/shopGoods/del',
    method: 'get',
    params: { 'id': id }
  })
}

